//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.itheima.pinda.authority.dto.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@ApiModel(
        value = "UserRegisterDTO",
        description = "用户注册DTO"
)
public class UserRegisterDTO implements Serializable {
    @NotEmpty(
            message = "手机号不能为空"
    )
    @ApiModelProperty("手机号")
    private String mobile;
    @NotEmpty(
            message = "密码不能为空"
    )
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("验证码")
    @NotEmpty(
            message = "验证码不能为空"
    )
    private String verificationCode;

    public UserRegisterDTO() {
    }

    public String getMobile() {
        return this.mobile;
    }

    public String getPassword() {
        return this.password;
    }

    public String getVerificationCode() {
        return this.verificationCode;
    }

    public UserRegisterDTO setMobile(final String mobile) {
        this.mobile = mobile;
        return this;
    }

    public UserRegisterDTO setPassword(final String password) {
        this.password = password;
        return this;
    }

    public UserRegisterDTO setVerificationCode(final String verificationCode) {
        this.verificationCode = verificationCode;
        return this;
    }

    @Override
    public String toString() {
        return "UserRegisterDTO(super=" + super.toString() + ", mobile=" + this.getMobile() + ", password=" + this.getPassword() + ", verificationCode=" + this.getVerificationCode() + ")";
    }

    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserRegisterDTO)) {
            return false;
        } else {
            UserRegisterDTO other = (UserRegisterDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$mobile = this.getMobile();
                    Object other$mobile = other.getMobile();
                    if (this$mobile == null) {
                        if (other$mobile == null) {
                            break label47;
                        }
                    } else if (this$mobile.equals(other$mobile)) {
                        break label47;
                    }

                    return false;
                }

                Object this$password = this.getPassword();
                Object other$password = other.getPassword();
                if (this$password == null) {
                    if (other$password != null) {
                        return false;
                    }
                } else if (!this$password.equals(other$password)) {
                    return false;
                }

                Object this$verificationCode = this.getVerificationCode();
                Object other$verificationCode = other.getVerificationCode();
                if (this$verificationCode == null) {
                    if (other$verificationCode != null) {
                        return false;
                    }
                } else if (!this$verificationCode.equals(other$verificationCode)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserRegisterDTO;
    }

    @Override
    public int hashCode() {
        /*int PRIME = true;*/
        int result = 1;
        Object $mobile = this.getMobile();
        result = result * 59 + ($mobile == null ? 43 : $mobile.hashCode());
        Object $password = this.getPassword();
        result = result * 59 + ($password == null ? 43 : $password.hashCode());
        Object $verificationCode = this.getVerificationCode();
        result = result * 59 + ($verificationCode == null ? 43 : $verificationCode.hashCode());
        return result;
    }
}
